package com.hyg.lib_music.ui.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.hyg.lib_base.mainUtils.StatusBarUtil;
import com.hyg.lib_common.Base.BaseActivity;
import com.hyg.lib_music.R;


public class MusicSleepResultActivity extends BaseActivity implements View.OnClickListener{


    private ImageView back;
    private ImageView musicClock;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_music_sleep_result);
        //设置紫色状态栏
//        this.setStatusBarColor(R.color.musicPrimary);
//        this.setDark(false);
//        this.setStatusBar();
        StatusBarUtil.setStatusBar(1,this,getResources().getColor(R.color.musicPrimary),60,null,null,false);

        init();
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    // 控件监听
    @Override
    public void onClick(View v) {
        int id = v.getId();
        if (id == R.id.back) {
            finish();
            overridePendingTransition(R.anim.zoom_enter, R.anim.zoom_exit);
        } else if (id == R.id.music_clock) {//                showTimerDialog();
        }
    }

    private void init() {
        //返回按钮
        back = (ImageView)findViewById(R.id.back);
        back.setOnClickListener(this);

    }


}


